package com.yu.blog.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum HttpStatusEnum {

    SUCCESS(200,"操作成功"),
    LOGIN_SUCCESS(200,"登陆成功"),
    LOGOUT_SUCCESS(200,"登出成功"),
    FAIL_SUCCESS(200,"操作失败"),
    FORBIDDEN(503,"访问失败"),
    DENIED(504,"无法访问系统资源"),
    TOKEN_DENIED(505,"token校验未通过"),
    CAPTCHA_ERROR(506,"验证码错误"),
    REPEAT_SUBMIT(507,"请求多次重复提交"),
    LOGIN_AUTH_ERROR(500, "用户名或密码错误"),
    UNKNOWN_ERROR(99999, "未知异常, 请联系管理员"),
    ILLEGAL_OPERATION(9999, "非法操作"),
    ;


    private final Integer code;
    private final String message;
}
